const Router = require('koa-router')
const app = new Router({ prefix: '/main/shop' })
const { isslogin } = require('../../middleware/index')
const { shopget, shopsucc, shopclose, shopout } = require('../../controller/main/getshop')
app.get('/get', isslogin, shopget)
app.post('/succ', isslogin, shopsucc)
app.post('/close', isslogin, shopclose)
app.post('/out', isslogin, shopout)
module.exports = app